import http from "@/api";

// * 获取api应用列表
export const getList = (params: any) => {
	return http.get(`/user/app/find`, params);
};
// * 获取api 树
export const getTree = (params?: any) => {
	return http.get(`/sys/api/tree`, params);
};
// * 添加应用
export const addApp = (params: any) => {
	return http.post(`/user/app/add`, params);
};
// * 删除应用
export const delApp = (appIds: any) => {
	return http.post(`/user/app/remove`, { appIds: appIds });
};
// * 编辑应用
export const editApp = (params: any) => {
	return http.post(`/user/app/modify`, params);
};
// * 根据应用id获取应用详情
export const getInfo = (appId: any) => {
	return http.get(`/user/app/get`, { appId: appId });
};
